package com.yurui.anno.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class MyEventListener02 implements ApplicationListener<Demo2Event> {

    @Override
    public void onApplicationEvent(Demo2Event demoEvent) {

        System.out.println(demoEvent.getGg());

    }

}
